﻿using System;
using System.Collections.Generic;
using System.Text;

using Codice.Client.Extension.Types;

namespace Codice.Client.Extension
{
    class RedmineGuiConfiguration : BaseGuiConfiguration
    {
        private RedmineConfigurationPanel mPanel;

        public RedmineGuiConfiguration()
        {
            mPanel = new RedmineConfigurationPanel();
        }

        #region Members of BaseGuiConfiguration

        protected override BaseConfigurationPanel GetRawConfigurationPanel()
        {
            return mPanel;
        }

        protected override Type GetConfigurationType()
        {
            return typeof(RedmineExtensionConfiguration);            
        }

        protected override void TestConnection(BaseExtensionConfiguration configuration)
        {
            RedmineTestConnection connection = new RedmineTestConnection();
            connection.TestConnection(configuration);
        }

        protected override string GetConfigFileName()
        {
            return RedmineExtension.ConfigFileName;
        }

        #endregion

    }
}
